function __ () {
    const path = [].slice.call(arguments)
    return 'store/mock/data/'.concat(path.join('/')).concat('.json')
}
module.exports = {
    state: {
        api: {
            user_info: {url: __('user/info')},
            user_menu: {url: __('user/menu')},
            user_bind: {url: __('user/bind')},
            user_unbind: {url: __('user/unbind')},
            chat_rooms: {url: __('chat/rooms')},
            chat_text: {url: __('chat/text')},
            chat_list: {url: __('chat/list')},
            chat_room: {url: __('chat/room')},
            salary_list: {url: __('salary/list')},
            article_list: {url () {return __('article/list', this.params.channel)}},
            article_detail: {url () {return __('article/detail', this.params.article)}},
            article_rate: {url () {return __('article/rate', this.params.article)}},
            article_remarks: {url () {return __('article/remarks', this.params.article)}},
            article_remark: {url () {return __('article/remark', this.params.article)}},
            activity_join: {url () {return __('activity/join', this.params.article)}},
            activity_cancel: {url () {return __('activity/cancel', this.params.article)}},
            article_vote: {url () {return __('article/vote', this.params.article)}},
            contacts_list: {url: __('contacts/list')},
            complaints_list: {url: __('complaints/list')},
            complaints_pub: {url: __('complaints/pub')},
            complaints_new: {url: __('complaints/new')},
            complaints_reply: {url () {return __('complaints/reply', this.params.id)}},
            gallery_list: {url: __('gallery/list')},
            gallery_open: {url () {return __('gallery/detail', this.params.gallery)}},
            parking_list: {url: __('parking/list')},
            parking_book: {url () {return __('parking/book', this.params.day)}},
            parking_cancel: {url () {return __('parking/cancel', this.params.day)}},
            train_list: {url: __('train/list')},
            train_lesson: {url () {return __('train/lessons', this.params.id)}},
            train_test: {url () {return __('train/test', this.params.id)}},
            survey_submit: {url: __('survey/submit')}
        }
    },
    getters: {
        api (state) {
            return state.api
        }
    }
}